#include "MultiWave2Mp3.h"

#include <stdio.h>


void callBack(DWORD dwProcessId, DWORD dwExitCode) {
	printf("Process: %d, Exit Code: %d.\n", dwProcessId, dwExitCode);
}


int main(int argc, char* argv[]) {


//	MW2MP3_CreateProcess(L"6min.wav", L"6min.mp3");
//	MW2MP3_CreateProcess(L"16min.wav", L"16min.mp3");
	MW2MP3_CreateProcess(L"28s.wav", L"28s.mp3");
	MW2MP3_CreateProcess(L"38s.wav", L"38s.mp3");
	MW2MP3_CreateProcess(L"testcase.wav", L"testcase.mp3");


	// loop until no more processes
	while( MW2MP3_HasMoreProcesses() ) {


		// check if there has any process ended
		MW2MP3_CheckProcesses(&callBack);

		// make sure you add some delay in the loop so it doesn't eat all CPU
		Sleep(3000);


	}

	return 0;
  
}


